package com.usian.admin.config

import com.sun.scenario.effect.impl.sw.sse.SSEBlend_SRC_OUTPeer

class KotlinDemo {
  /*  var a :Int=0
    var b:String="gjknhjnbfd"
    var c :Short=1
    var arr : Array<Any> = arrayOf(1,2,"5")*/
  var list1:  List<Int> = listOf(1,2,3,4)
    var list2 :MutableList<Int> = mutableListOf(2,3,5,6,7,8);
    fun get(){
       /* a=b.toInt();
        c=a.toShort();
        arr.forEach {
            println(it);
        }*//*
        val indexOf = b.indexOf("j",2,false)
        println(indexOf)*/
      list2.addAll(list1);
      println(list2)

      println( list2[3])
      list2.removeAll(list1)
      println(list2)
    }
}
fun main (){
    KotlinDemo().get();

}